<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    h1 ~ a {
      color: red;
    }
  </style>
</head>
<body>
  <div>
    <h1>ddd</h1>
    <a href="#">bbb</a>
    <p>sss</p>
    <a href="#">aaa</a>
  </div>
</body>
</html>